package com.example.demo.durable;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("durable")
public class DurableController {

    @Autowired
    private DurableSender durableSender;

    @PostMapping
    public String send(String message){
        durableSender.send(message);
        return message;
    }
}
